<template>
    <div class="bottom_container">
        <div class="bottom_txt">
            循环流量计
        </div>
        <div class="bottom_data">
            <div class="bottom_data_item" v-for="(item,index) in flowData" :key="index">
                <div class="item_txt">{{ item.txt }}</div>
                <div class="item_val">{{ item.val }}</div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    props:{
      real:{
          type:Object
      }
  },
    computed:{
        flowData(){
            var flowArr=[]
                for(var key in this.real){
                    if(key.indexOf("LL_3") != -1 || key.indexOf("LL_6") != -1 || key.indexOf("LL_1") != -1){
                        flowArr.push({
                            txt:key.slice(3) + "#",
                            val:this.real[key].toFixed(2)
                        })
                    }
                }
            return flowArr
        }
    }
}
</script>
<style lang="scss">
.bottom_container{
    width: 100%;
    height: 95%;
    border: 1px solid #00def8;
    border-radius: 10px;
    box-sizing: border-box;
    padding:0.2rem 0.1rem;
    color: #fff;
}
.bottom_txt{
  height: 10%;
  text-align: center;
  font-size: 0.2rem;
  font-weight: bold;
}
.bottom_data{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.1rem;
}

.bottom_data_item{
    width:calc(100% / 11);
    text-align: center;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.13rem 0;
    font-size: 0.2rem;
}

.item_txt{
   width: 0.5rem;
   text-align: center;
}
.item_val{
    width: 0.7rem;
    margin-left: 0.2rem;
    padding: 0.05rem 0.1rem;
    text-align: center;
    background: #000;
    color: #52c41a;
    font-weight: 600;
}
</style>